package com.yxq.mdt.app.modules.socialcontact.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yxq.mdt.app.R;
import com.yxq.mdt.app.modules.socialcontact.bean.SocialStateContactBean;

import java.util.List;

public class SocialStateContactAdapter extends BaseQuickAdapter<SocialStateContactBean, BaseViewHolder> {
    public SocialStateContactAdapter(int layoutResId, @Nullable List<SocialStateContactBean> data) {
        super(layoutResId, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, SocialStateContactBean item) {
        ImageView icon = helper.getView(R.id.panic_tv_count_img);
        icon.setImageResource(item.getImg());
    }
}
